import request from '@/utils/request'
import { strmd5 } from '@/utils/addmd5.js'

export function login(account, password) {
  return request({
    url: '/_admin/login',
    method: 'post',
    data: {
      account: account,
      password: strmd5(password)
    }
  })
}
export function getInfo(admin_id, token) {
  return request({
    url: '/_admin/get',
    method: 'post',
    data: {
      admin_id,
      token
    }
  })
}

